<template>
	<view>
	
		<view>
			{{title}}
			<textarea class="title" v-model="text1"></textarea>
		</view>
		<view>
			{{introduce}}
			<textarea class="introduce" v-model="text2"></textarea>
		</view>
		<view class="content">
			{{content}}
			<textarea class="textarea" v-model="text3"></textarea>
		</view>
		
		<textarea class="ait" v-model="ait2" placeholder="ait营养师"></textarea>
		<button type="default" @click="editPost">提交</button>
	</view>

</template>

<script>
	export default {
		data() {
			return {
				// valueaa: "",
				title: '标题',
				introduce: '介绍信息',
				content: '内容信息',
				text1: "",
				text2: "",
				text3: "",
                ait:'ait营养师'
				// lists: []
			}
		},
		methods: {

			editPost() {
				let data = {
					"interactiveTitle": this.text1,
					"interactiveIntroduce": this.text2,
					"interactiveContent": this.text3
				}
				this.$req.getEditPost(data).then(res => {
					// uni.request({
					// 	header: {
					// 		'content-type': 'application/x-www-form-urlencoded'
					// 	}
					// })
				})
			}
			// grabble() {
			// 	let data = {
			// 		key: this.valueaa,
			// 		limit: 2,
			// 		page: 1
			// 	}
			// 	this.$req.getSearch(data).then(res => {
			// 		this.lists = res.data.list

			// 	}).catch(err => {
			// 		console.log(err);
			// 	})
			// }
		
		},
		editPost() {
			this.editPost()
		}
		// onLoad() {
		// 	this.grabble()
		// }

	}
</script>

<style>
	.title {
		width: 100%;
		height: 80rpx;
		border: 1px #4CD964 solid;
	}

	.introduce {
		width: 100%;
		height: 150rpx;
		border: #007AFF 1px solid;
	}

	.textarea {
		width: 100%;
		height: 300rpx;
		border: solid 1px #007AFF;
	}
	.ait{
		width: 100%;
		height: 80rpx;
		border: 1px #4CD964 solid;
	}
</style>
